// 此文件->封装3个方法->专门用于操作token的
const key = 'geek-itheima'
// 存储token到vuex中
export const setToken = (token) => localStorage.setItem(key, token)

// 拿取token
export const getToken = () => localStorage.getItem(key)

// 删除token
export const removeToken = () => localStorage.removeItem(key)
